Skip to content

FTM: fix resonance test motion and optimize compute#28266

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.1.xfrom
narno2202:FTM_Fix-Resonance_Test
Jan 9, 2026
Merged

FTM: fix resonance test motion and optimize compute#28266
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.1.xfrom
narno2202:FTM_Fix-Resonance_Test

Conversation

@narno2202
Copy link
Copy Markdown
Contributor

Description

After last code merge :

  1. Sine sweep motion (around a central point) is broken with fast_sin() as the value range is not -π <= r <= π, fixed.
  2. Optimize compute with exp2f precalculated outside the loop.
  3. Fix broken resonance frequency calculation from menu

Requirements

Benefits

Test works as intended, more optimization for MCU without FPU
Fix broken resonance frequency calculation in motion menu

Configurations

Related Issues

@plampix
Copy link
Copy Markdown
Contributor

plampix commented Jan 9, 2026

This code indeed fixes the issue mentioned in #28263 , please merge asap, as the current state of bugfix-2.1 can result in an unusable firmware.

@thinkyhead thinkyhead merged commit d1de921 into MarlinFirmware:bugfix-2.1.x Jan 9, 2026
67 checks passed
@narno2202 narno2202 deleted the FTM_Fix-Resonance_Test branch January 10, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants